﻿using CommonFactory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BehaviorSystem;
using UnityEngine;

namespace CharacterSystem
{
    public abstract class CharacterBase : MonoBehaviour,ICharacter
    {
        public abstract void Init(ICharacterData data);

        public T AddComponent<T>() where T : Component
        {
            return this.gameObject.AddComponent<T>();
        }
    }
}
